package com.rpp.utils;

import com.alibaba.druid.pool.DruidDataSource;

/**
 * @Description
 * @Author rpp
 * @Date 2020/6/25 9:55 下午
 */
public class DruidUtils {

    private DruidUtils() {
    }

    private static DruidDataSource druidDataSource = new DruidDataSource();


    static {
        druidDataSource.setDriverClassName("com.mysql.jdbc.Driver");
        druidDataSource.setUrl("jdbc:mysql://47.94.80.41:3306/rpp_test");
        druidDataSource.setUsername("root");
        druidDataSource.setPassword("rppizpy");

    }

    public static DruidDataSource getInstance() {
        return druidDataSource;
    }

}
